package com.example.demo.Controller;

import com.example.demo.bean.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLOutput;

/**
 * @author 软件工程10班 吕俊铭
 * @create 2021-07-28 22:57
 * Description:
 */

@RestController
public class HelloController {

    @Autowired
    private Car car;

    @RequestMapping("/hello1")
    public String hello1(){
        return car.toString();
    }
}
